package com.yandadeyu.springBoot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018/6/12.
 */
@Component
public class MyProperty {

    @Value("{com.yandadeyu.name}")
    private  String name;
    @Value("{com.yandadeyu.age}")
    private  String age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
